<?php
$tdatatbl_chu_chay=array();
	$tdatatbl_chu_chay[".NumberOfChars"]=80; 
	$tdatatbl_chu_chay[".ShortName"]="tbl_chu_chay";
	$tdatatbl_chu_chay[".OwnerID"]="";
	$tdatatbl_chu_chay[".OriginalTable"]="tbl_chu_chay";


	
//	field labels
$fieldLabelstbl_chu_chay = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_chu_chay["English"]=array();
	$fieldToolTipstbl_chu_chay["English"]=array();
	$fieldLabelstbl_chu_chay["English"]["id"] = "Id";
	$fieldToolTipstbl_chu_chay["English"]["id"] = "";
	$fieldLabelstbl_chu_chay["English"]["noi_dung"] = "Noi Dung";
	$fieldToolTipstbl_chu_chay["English"]["noi_dung"] = "";
	if (count($fieldToolTipstbl_chu_chay["English"])){
		$tdatatbl_chu_chay[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_chu_chay[".NCSearch"]=true;

	

$tdatatbl_chu_chay[".shortTableName"] = "tbl_chu_chay";
$tdatatbl_chu_chay[".nSecOptions"] = 0;
$tdatatbl_chu_chay[".recsPerRowList"] = 1;	
$tdatatbl_chu_chay[".tableGroupBy"] = "0";
$tdatatbl_chu_chay[".mainTableOwnerID"] = "";
$tdatatbl_chu_chay[".moveNext"] = 1;




$tdatatbl_chu_chay[".showAddInPopup"] = false;

$tdatatbl_chu_chay[".showEditInPopup"] = false;

$tdatatbl_chu_chay[".showViewInPopup"] = false;


$tdatatbl_chu_chay[".fieldsForRegister"] = array();

$tdatatbl_chu_chay[".listAjax"] = false;

	$tdatatbl_chu_chay[".audit"] = false;

	$tdatatbl_chu_chay[".locking"] = false;
	
$tdatatbl_chu_chay[".listIcons"] = true;
$tdatatbl_chu_chay[".edit"] = true;
$tdatatbl_chu_chay[".inlineEdit"] = true;
$tdatatbl_chu_chay[".view"] = true;

$tdatatbl_chu_chay[".exportTo"] = true;

$tdatatbl_chu_chay[".printFriendly"] = true;

$tdatatbl_chu_chay[".delete"] = true;

$tdatatbl_chu_chay[".showSimpleSearchOptions"] = false;

$tdatatbl_chu_chay[".showSearchPanel"] = true;


$tdatatbl_chu_chay[".isUseAjaxSuggest"] = true;

$tdatatbl_chu_chay[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_chu_chay[".addPageEvents"] = false;

$tdatatbl_chu_chay[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_chu_chay[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_chu_chay[".isUseTimeForSearch"] = false;

$tdatatbl_chu_chay[".isUseiBox"] = false;



$tdatatbl_chu_chay[".isUseInlineAdd"] = true;

$tdatatbl_chu_chay[".isUseInlineEdit"] = true;
$tdatatbl_chu_chay[".isUseInlineJs"] = $tdatatbl_chu_chay[".isUseInlineAdd"] || $tdatatbl_chu_chay[".isUseInlineEdit"];

$tdatatbl_chu_chay[".allSearchFields"] = array();



$tdatatbl_chu_chay[".googleLikeFields"][] = "id";



$tdatatbl_chu_chay[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_chu_chay[".allSearchFields"])) 
{
	$tdatatbl_chu_chay[".allSearchFields"][] = "id";	
}
$tdatatbl_chu_chay[".advSearchFields"][] = "noi_dung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung", $tdatatbl_chu_chay[".allSearchFields"])) 
{
	$tdatatbl_chu_chay[".allSearchFields"][] = "noi_dung";	
}

$tdatatbl_chu_chay[".isTableType"] = "list";


	

$tdatatbl_chu_chay[".isDisplayLoading"] = true;

$tdatatbl_chu_chay[".isResizeColumns"] = false;





$tdatatbl_chu_chay[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_chu_chay[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_chu_chay[".orderindexes"] = array();

$tdatatbl_chu_chay[".sqlHead"] = "SELECT id,   noi_dung";
$tdatatbl_chu_chay[".sqlFrom"] = "FROM tbl_chu_chay";
$tdatatbl_chu_chay[".sqlWhereExpr"] = "";
$tdatatbl_chu_chay[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_chu_chay[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_chu_chay[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_chu_chay[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_chu_chay";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_chu_chay["id"]=$fdata;
//	noi_dung
	$fdata = array();
	$fdata["strName"] = "noi_dung";
	$fdata["ownerTable"] = "tbl_chu_chay";
		$fdata["Label"]="Noi Dung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung";
	
		$fdata["FullName"]= "noi_dung";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 2;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_chu_chay["noi_dung"]=$fdata;

	
$tables_data["tbl_chu_chay"]=&$tdatatbl_chu_chay;
$field_labels["tbl_chu_chay"] = &$fieldLabelstbl_chu_chay;
$fieldToolTips["tbl_chu_chay"] = &$fieldToolTipstbl_chu_chay;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_chu_chay"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_chu_chay"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto144=array();
$proto144["m_strHead"] = "SELECT";
$proto144["m_strFieldList"] = "id,   noi_dung";
$proto144["m_strFrom"] = "FROM tbl_chu_chay";
$proto144["m_strWhere"] = "";
$proto144["m_strOrderBy"] = "";
$proto144["m_strTail"] = "";
$proto145=array();
$proto145["m_sql"] = "";
$proto145["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto145["m_column"]=$obj;
$proto145["m_contained"] = array();
$proto145["m_strCase"] = "";
$proto145["m_havingmode"] = "0";
$proto145["m_inBrackets"] = "0";
$proto145["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto145);

$proto144["m_where"] = $obj;
$proto147=array();
$proto147["m_sql"] = "";
$proto147["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto147["m_column"]=$obj;
$proto147["m_contained"] = array();
$proto147["m_strCase"] = "";
$proto147["m_havingmode"] = "0";
$proto147["m_inBrackets"] = "0";
$proto147["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto147);

$proto144["m_having"] = $obj;
$proto144["m_fieldlist"] = array();
						$proto149=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_chu_chay"
));

$proto149["m_expr"]=$obj;
$proto149["m_alias"] = "";
$obj = new SQLFieldListItem($proto149);

$proto144["m_fieldlist"][]=$obj;
						$proto151=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung",
	"m_strTable" => "tbl_chu_chay"
));

$proto151["m_expr"]=$obj;
$proto151["m_alias"] = "";
$obj = new SQLFieldListItem($proto151);

$proto144["m_fieldlist"][]=$obj;
$proto144["m_fromlist"] = array();
												$proto153=array();
$proto153["m_link"] = "SQLL_MAIN";
			$proto154=array();
$proto154["m_strName"] = "tbl_chu_chay";
$proto154["m_columns"] = array();
$proto154["m_columns"][] = "id";
$proto154["m_columns"][] = "noi_dung";
$obj = new SQLTable($proto154);

$proto153["m_table"] = $obj;
$proto153["m_alias"] = "";
$proto155=array();
$proto155["m_sql"] = "";
$proto155["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto155["m_column"]=$obj;
$proto155["m_contained"] = array();
$proto155["m_strCase"] = "";
$proto155["m_havingmode"] = "0";
$proto155["m_inBrackets"] = "0";
$proto155["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto155);

$proto153["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto153);

$proto144["m_fromlist"][]=$obj;
$proto144["m_groupby"] = array();
$proto144["m_orderby"] = array();
$obj = new SQLQuery($proto144);

$queryData_tbl_chu_chay = $obj;
$tdatatbl_chu_chay[".sqlquery"] = $queryData_tbl_chu_chay;

$tableEvents["tbl_chu_chay"] = new eventsBase;

?>
